]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rm_option_init): Initialize new member, x->require_restore_cwd.
authorJim Meyering <jim@meyering.net>
Sat, 29 May 2004 22:06:25 +0000 (22:06 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 May 2004 22:06:25 +0000 (22:06 +0000)
src/mv.c

index c310595647ceed5ae85c9b2bcd39aedd71c5562d..240beb31ba1dd545c491628ae058ae2da0a4713f 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -106,6 +106,12 @@ rm_option_init (struct rm_options *x)
   x->stdin_tty = 0;
 
   x->verbose = 0;
+
+  /* Since this program may well have to process additional command
+     line arguments after any call to `rm', that function must preserve
+     the initial working directory, in case one of those is a
+     `.'-relative name.  */
+  x->require_restore_cwd = true;
 }
 
 static void