* As pointed out by Andreas, the previous patch wasn't really correct; ALLPERMS

should really contain all permission bits.
* It now uses S_ISVTX instead of S_ISTXT - this is how it works in Linux as
  well, while FreeBSD uses S_ISTXT there (but S_ISTXT and S_ISVTX have the
  same value there, too).
* Also fixed the fs_shell this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26761 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-08-03 16:30:30 +00:00
parent 547a7d1844
commit 6449b66e22
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ struct stat {
#define S_ISUID 04000 /* set user id on execution */
#define S_ISGID 02000 /* set group id on execution */
#define S_ISVTX 01000 /* save swapped text even after use */
#define S_ISVTX 01000 /* save swapped text even after use (sticky bit) */
#define S_IRWXU 00700 /* read, write, execute: owner */
#define S_IRUSR 00400 /* read permission: owner */
@@ -93,7 +93,7 @@ struct stat {
#define S_IEXEC S_IXUSR
#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO)
#define ALLPERMS (S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO)
#define ALLPERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
/* default file mode, everyone can read/write */
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007, Haiku Inc. All Rights Reserved.
* Copyright 2002-2008, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _FSSH_SYS_STAT_H_
@@ -72,7 +72,7 @@ typedef struct fssh_stat fssh_struct_stat;
#define FSSH_S_ISUID 04000 /* set user id on execution */
#define FSSH_S_ISGID 02000 /* set group id on execution */
#define FSSH_S_ISVTX 01000 /* save swapped text even after use */
#define FSSH_S_ISVTX 01000 /* save swapped text even after use (sticky bit) */
#define FSSH_S_IRWXU 00700 /* read, write, execute: owner */
#define FSSH_S_IRUSR 00400 /* read permission: owner */
@@ -88,7 +88,7 @@ typedef struct fssh_stat fssh_struct_stat;
#define FSSH_S_IXOTH 00001 /* execute permission: other */
#define FSSH_ACCESSPERMS (FSSH_S_IRWXU | FSSH_S_IRWXG | FSSH_S_IRWXO)
#define FSSH_ALLPERMS (FSSH_S_ISUID | FSSH_S_ISGID | FSSH_S_ISTXT \
#define FSSH_ALLPERMS (FSSH_S_ISUID | FSSH_S_ISGID | FSSH_S_ISVTX \
| FSSH_S_IRWXU | FSSH_S_IRWXG | FSSH_S_IRWXO)
#define FSSH_DEFFILEMODE (FSSH_S_IRUSR | FSSH_S_IWUSR | FSSH_S_IRGRP \
| FSSH_S_IWGRP | FSSH_S_IROTH | FSSH_S_IWOTH)