diff options
| author | Eli Zaretskii | 2008-04-05 15:26:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-04-05 15:26:10 +0000 |
| commit | aa08d1ff92a8f16eb449353d6159d4ff682b8d13 (patch) | |
| tree | aa1b8c549db17669013471ff7ae40f65265745bf /src/w32.c | |
| parent | c902c8a7813df3c9b4f78e4e361d23d480ca234d (diff) | |
| download | emacs-aa08d1ff92a8f16eb449353d6159d4ff682b8d13.tar.gz emacs-aa08d1ff92a8f16eb449353d6159d4ff682b8d13.zip | |
(init_user_info): Don't restrict UID and GID to 0-60000 range.
Diffstat (limited to 'src/w32.c')
| -rw-r--r-- | src/w32.c | 4 |
1 files changed, 0 insertions, 4 deletions
| @@ -637,8 +637,6 @@ init_user_info () | |||
| 637 | the_passwd.pw_uid = | 637 | the_passwd.pw_uid = |
| 638 | *get_sid_sub_authority (user_token.User.Sid, | 638 | *get_sid_sub_authority (user_token.User.Sid, |
| 639 | n_subauthorities - 1); | 639 | n_subauthorities - 1); |
| 640 | /* Restrict to conventional uid range for normal users. */ | ||
| 641 | the_passwd.pw_uid %= 60001; | ||
| 642 | } | 640 | } |
| 643 | 641 | ||
| 644 | /* Get group id */ | 642 | /* Get group id */ |
| @@ -656,8 +654,6 @@ init_user_info () | |||
| 656 | the_passwd.pw_gid = | 654 | the_passwd.pw_gid = |
| 657 | *get_sid_sub_authority (group_token.PrimaryGroup, | 655 | *get_sid_sub_authority (group_token.PrimaryGroup, |
| 658 | n_subauthorities - 1); | 656 | n_subauthorities - 1); |
| 659 | /* I don't know if this is necessary, but for safety... */ | ||
| 660 | the_passwd.pw_gid %= 60001; | ||
| 661 | } | 657 | } |
| 662 | } | 658 | } |
| 663 | else | 659 | else |