]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct rm_options) [require_restore_cwd]: New member.
authorJim Meyering <jim@meyering.net>
Sat, 29 May 2004 22:05:26 +0000 (22:05 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 May 2004 22:05:26 +0000 (22:05 +0000)
src/remove.h

index e4b7aad7e318172b15551c8a3b532b3a33038b38..f067fd9d3669854eacf5713cbdc5924633b54ce0 100644 (file)
@@ -28,6 +28,14 @@ struct rm_options
 
   /* If nonzero, display the name of each file removed.  */
   int verbose;
+
+  /* If true, treat the failure by the rm function to restore the
+     current working directory as a fatal error.  I.e., if this field
+     is true and the rm function cannot restore cwd, it must exit with
+     a nonzero status.  Some applications require that the rm function
+     restore cwd (e.g., mv) and some others do not (e.g., rm,
+     in many cases).  */
+  bool require_restore_cwd;
 };
 
 enum RM_status