diff options
author | Jim Meyering <jim@meyering.net> | 2002-02-01 23:30:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-02-01 23:30:23 +0000 |
commit | 61d5f094fd9c6b7ab88019c9235c9a20aa7ff33f (patch) | |
tree | 0d617c7a1be9af4e1d12f8f343f449b4a9502e12 | |
parent | 3e04fcdbb5cdfec6d649b5fa6bf16344cff68d84 (diff) | |
download | coreutils-61d5f094fd9c6b7ab88019c9235c9a20aa7ff33f.tar.xz |
(rm): Add a comment.
-rw-r--r-- | src/remove.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index ce8efec61..ad3e99e28 100644 --- a/src/remove.c +++ b/src/remove.c @@ -1,5 +1,5 @@ /* remove.c -- core functions for removing files and directories - Copyright (C) 88, 90, 91, 1994-2001 Free Software Foundation, Inc. + Copyright (C) 88, 90, 91, 1994-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -874,6 +874,10 @@ The following two directories have the same inode number:\n")); } else { + /* If this command line argument contains a `/' (which means + rm will chdir `into' it while removing it), then rm will + have to save/restore the current working directory, in case a + subsequent command line argument is a relative path name. */ int need_save_cwd = user_specified_name; enum RM_status status; |