Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
aa08d1ff
Commit
aa08d1ff
authored
Apr 05, 2008
by
Eli Zaretskii
Browse files
(init_user_info): Don't restrict UID and GID to 0-60000 range.
parent
c902c8a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
nt/ChangeLog
nt/ChangeLog
+2
-0
src/ChangeLog
src/ChangeLog
+1
-0
src/w32.c
src/w32.c
+0
-4
No files found.
nt/ChangeLog
View file @
aa08d1ff
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>
...
...
src/ChangeLog
View file @
aa08d1ff
...
...
@@ -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>
...
...
src/w32.c
View file @
aa08d1ff
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment