summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-29 22:06:25 +0000
committerJim Meyering <jim@meyering.net>2004-05-29 22:06:25 +0000
commit56d5c6f7cadcd5f0088d8b563434948d0b2a898c (patch)
treed615d6ff9c5cee251f728c9b0bc328001a1906ad /src
parent8f7ac733b9c295ee38b4935a7cf9730f39af0fc8 (diff)
downloadcoreutils-56d5c6f7cadcd5f0088d8b563434948d0b2a898c.tar.xz
(rm_option_init): Initialize new member, x->require_restore_cwd.
Diffstat (limited to 'src')
-rw-r--r--src/mv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mv.c b/src/mv.c
index c31059564..240beb31b 100644
--- 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