[elbe-devel] [PATCH v1 6/8] Fix 'touch' method of 'VirtApt' on broken link

Torben Hohn torben.hohn at linutronix.de
Thu May 23 17:10:37 CEST 2019


On Wed, May 22, 2019 at 03:33:46PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/virtapt.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
> index e382c688..8be68b0a 100644
> --- a/elbepack/virtapt.py
> +++ b/elbepack/virtapt.py
> @@ -159,7 +159,7 @@ class VirtApt(object):
>          if os.path.exists(fname):
>              os.utime(fname, None)
>          else:
> -            fp = open(fname, "w")
> +            fp = open(os.path.realpath(fname), "w")
>              fp.close()
>  
>      def initialize_dirs(self):
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list