FreeBSD Bugzilla – Attachment 14843 Details for
Bug 27757
chapss(1) converts a large uid to a negative one
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.22 KB, created by
Yoshihiro Koya
on 2001-05-30 00:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yoshihiro Koya
Created:
2001-05-30 00:10:02 UTC
Size:
1.22 KB
patch
obsolete
>Index: edit.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/chpass/edit.c,v >retrieving revision 1.18 >diff -u -r1.18 edit.c >--- edit.c 2000/09/06 18:16:46 1.18 >+++ edit.c 2001/05/29 21:53:59 >@@ -255,7 +255,7 @@ > pw->pw_gecos[len - 1] = '\0'; > > if (snprintf(buf, sizeof(buf), >- "%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s", >+ "%s:%s:%u:%u:%s:%ld:%ld:%s:%s:%s", > pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class, > pw->pw_change, pw->pw_expire, pw->pw_gecos, pw->pw_dir, > pw->pw_shell) >= sizeof(buf)) { >Index: pw_copy.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/chpass/pw_copy.c,v >retrieving revision 1.9 >diff -u -r1.9 pw_copy.c >--- pw_copy.c 1999/09/06 17:30:02 1.9 >+++ pw_copy.c 2001/05/29 22:18:06 >@@ -64,8 +64,8 @@ > char chgstr[20]; > char expstr[20]; > >- snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid); >- snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid); >+ snprintf(uidstr, sizeof(uidstr), "%u", pw->pw_uid); >+ snprintf(gidstr, sizeof(gidstr), "%u", pw->pw_gid); > snprintf(chgstr, sizeof(chgstr), "%ld", (long)pw->pw_change); > snprintf(expstr, sizeof(expstr), "%ld", (long)pw->pw_expire);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27757
: 14843