]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_user_info): Don't restrict UID and GID to 0-60000 range.
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 Apr 2008 15:26:10 +0000 (15:26 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 Apr 2008 15:26:10 +0000 (15:26 +0000)
nt/ChangeLog
src/ChangeLog
src/w32.c

index 4eda6f02d8686d5b0971f68868c08dcae789635d..0c5e837c8947d2619436116cd2c5a57ab0c49f32 100644 (file)
@@ -1,5 +1,7 @@
 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
 
+       * inc/sys/stat.h: New file.
+
        * configure.bat: Add check for usp10.h.
 
 2008-04-04  Jason Rumney  <jasonr@gnu.org>
index 12f3ebe6eb3c554920508a152f0906c0be9884c9..808a78e41d6cd5a81ddb57779654c514b567ca20 100644 (file)
@@ -7,6 +7,7 @@
        * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
        _S_* ones, since we now use our own sys/stat.h.
        (stat, fstat): Don't mangle the inode number.
+       (init_user_info): Don't restrict UID and GID to 0-60000 range.
 
 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index cfb11b9cd96d8989bd9a9842d19ce05b47335969..1108f22b1125776fc94cf46bff082939841bd58b 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -637,8 +637,6 @@ init_user_info ()
              the_passwd.pw_uid =
                *get_sid_sub_authority (user_token.User.Sid,
                                        n_subauthorities - 1);
-             /* Restrict to conventional uid range for normal users.  */
-             the_passwd.pw_uid %= 60001;
            }
 
          /* Get group id */
@@ -656,8 +654,6 @@ init_user_info ()
                  the_passwd.pw_gid =
                    *get_sid_sub_authority (group_token.PrimaryGroup,
                                            n_subauthorities - 1);
-                 /* I don't know if this is necessary, but for safety...  */
-                 the_passwd.pw_gid %= 60001;
                }
            }
          else