Article View: gnu.utils.bug
Article #225fileutils-3.3 - chown broken
From: Rob McMahon
Date: Sat, 25 Jul 1992 15:00
Date: Sat, 25 Jul 1992 15:00
34 lines
1404 bytes
1404 bytes
Chown does not work on a Sun4, running SunOS 4.1.2, with gcc-2.2.2.
parse_user_spec is expecting a pointer to a uid_t and a pointer to a gid_t,
but is being passed the addresses of two ints. This patch fixes the problem:
===================================================================
RCS file: chown.c,v
retrieving revision 1.1
diff -c -r1.1 chown.c
*** 1.1 1992/07/25 12:06:18
--- chown.c 1992/07/25 12:07:11
***************
*** 96,103 ****
int argc;
char **argv;
{
! int user = -1; /* New uid; -1 if not to be changed. */
! int group = -1; /* New gid; -1 if not to be changed. */
int errors = 0;
int optc;
char *e;
--- 96,103 ----
int argc;
char **argv;
{
! uid_t user = -1; /* New uid; -1 if not to be changed. */
! gid_t group = -1; /* New gid; -1 if not to be changed. */
int errors = 0;
int optc;
char *e;
===================================================================
Cheers,
Rob
Technical Details
Message-ID:
<19307.199207251300@lily.csv.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csv.warwick.ac.UK!cudcvShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csv.warwick.ac.UK!cudcv From: cudcv@csv.warwick.ac.UK (Rob McMahon) Subject: fileutils-3.3 - chown broken Message-ID: <19307.199207251300@lily.csv.warwick.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 25 Jul 1992 15:00:01 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 35