🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Rob McMahon Sat, 25 Jul 1992 15:00
fileutils-3.3 - chown broken
#225
Author: Rob McMahon
Date: Sat, 25 Jul 1992 15:00
34 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads