# HG changeset patch # User asl # Date 1058189629 0 # Node ID 087b71a001793547d97c90b62136c5a67a94910f # Parent f325e30b880817117995116956a1061e075dc225 * support/mk_romfs.c: S_I[RWX]{USR|GRP|OTH} etc changed to match the changes in sys/stat.h diff --git a/packages/fs/rom/current/ChangeLog b/packages/fs/rom/current/ChangeLog --- a/packages/fs/rom/current/ChangeLog +++ b/packages/fs/rom/current/ChangeLog @@ -1,3 +1,8 @@ +2003-07-10 Andrew Lunn + + * 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 * cdl/romfs.cdl: Fix doc link. diff --git a/packages/fs/rom/current/support/mk_romfs.c b/packages/fs/rom/current/support/mk_romfs.c --- 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; }