Commit c52d296
authored
chgrp: redundant file check (briandfoy#954)
* In modify_file(), delete a -e file check immediately before stat()ing the file
* Allow stat() to fail; it will cover the case where the file argument doesn't exist
%perl chgrp root a/b/c/d
chgrp: failed to stat 'a/b/c/d': No such file or directory1 parent dc9d37b commit c52d296
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
| |||
0 commit comments