Mercurial > nand-ecoscentric
changeset 1104:087b71a00179
* support/mk_romfs.c: S_I[RWX]{USR|GRP|OTH} etc changed to match
the changes in sys/stat.h
| author | asl |
|---|---|
| date | Mon, 14 Jul 2003 13:33:49 +0000 |
| parents | f325e30b8808 |
| children | a8f01385190a |
| files | packages/fs/rom/current/ChangeLog packages/fs/rom/current/support/mk_romfs.c |
| diffstat | 2 files changed, 16 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/fs/rom/current/ChangeLog +++ b/packages/fs/rom/current/ChangeLog @@ -1,3 +1,8 @@ +2003-07-10 Andrew Lunn <andrew.lunn@ascom.ch> + + * support/mk_romfs.c: S_I[RWX]{USR|GRP|OTH} etc changed to match + the changes in sys/stat.h + 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com> * cdl/romfs.cdl: Fix doc link.
--- a/packages/fs/rom/current/support/mk_romfs.c +++ b/packages/fs/rom/current/support/mk_romfs.c @@ -267,17 +267,17 @@ static unsigned long ConvertMode( unsign if ( S_ISREG( posix_mode ) ) result |= 1<<3; if ( S_ISFIFO(posix_mode ) ) result |= 1<<4; // We cannot create MQ, SEM, or SHM entries here - if ( posix_mode & S_IRUSR ) result |= 1<<8; - if ( posix_mode & S_IWUSR ) result |= 1<<9; - if ( posix_mode & S_IXUSR ) result |= 1<<10; - if ( posix_mode & S_IRGRP ) result |= 1<<11; - if ( posix_mode & S_IWGRP ) result |= 1<<12; - if ( posix_mode & S_IXGRP ) result |= 1<<13; - if ( posix_mode & S_IROTH ) result |= 1<<14; - if ( posix_mode & S_IWOTH ) result |= 1<<15; - if ( posix_mode & S_IXOTH ) result |= 1<<16; - if ( posix_mode & S_ISUID ) result |= 1<<17; - if ( posix_mode & S_ISGID ) result |= 1<<18; + if ( posix_mode & S_IRUSR ) result |= 1<<16; + if ( posix_mode & S_IWUSR ) result |= 1<<17; + if ( posix_mode & S_IXUSR ) result |= 1<<18; + if ( posix_mode & S_IRGRP ) result |= 1<<19; + if ( posix_mode & S_IWGRP ) result |= 1<<20; + if ( posix_mode & S_IXGRP ) result |= 1<<21; + if ( posix_mode & S_IROTH ) result |= 1<<22; + if ( posix_mode & S_IWOTH ) result |= 1<<23; + if ( posix_mode & S_IXOTH ) result |= 1<<24; + if ( posix_mode & S_ISUID ) result |= 1<<25; + if ( posix_mode & S_ISGID ) result |= 1<<26; return result; }
