git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiuser, Capabilities and Access Controls (#54)
[lunaix-os.git]
/
lunaix-os
/
usr
/
rm.c
diff --git
a/lunaix-os/usr/rm.c
b/lunaix-os/usr/rm.c
index 7fea8332528af9e30baa0542fd4178b30da3d342..c6046ce695c608d5c3b10d7bf51797213e6b40c2 100644
(file)
--- a/
lunaix-os/usr/rm.c
+++ b/
lunaix-os/usr/rm.c
@@
-29,7
+29,7
@@
main(int argc, const char* argv[])
close(fd);
close(fd);
- if ((
stat.mode
& F_DIR)) {
+ if ((
(stat.st_mode >> 16)
& F_DIR)) {
err = rmdir(path);
}
else {
err = rmdir(path);
}
else {