🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #197

fileutils 3.3 (chown.c fix)

#197
From: Russell Cattelan
Date: Tue, 04 Aug 1992 05:15
41 lines
1641 bytes
I found that with fileutils 3.3 chown stoped working, well with a
little hacking I found that the types for user and group were declared
as "int" rather than uid_t and gid_t,  thus the values set by
parse_user_spec()  were misaligned.

Sooooo here is the simple fix.

*** chown.c	Tue Aug  4 09:44:27 1992
--- chown.c.orig	Tue Aug  4 09:56:23 1992
***************
*** 96,108 ****
       int argc;
       char **argv;
  {
- #if 0
    int user = -1;		/* New uid; -1 if not to be changed. */
    int group = -1;		/* New gid; -1 if not to be changed. */
- #endif
-   uid_t user =  -1;
-   gid_t group =  -1;
- 
    int errors = 0;
    int optc;
    char *e;
--- 96,103 ----

----------------------------------------------------------------------
Also chown on the SGI's is giving me this error message.
chown: ./cp.h: Invalid argument

I haven't figured this one out yet 

--
  Russell Cattelan
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Conway's Law:
        In any organization there will always be one person who knows
        what is going on.

        This person must be fired.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Technical Details
Message-ID: <199208041515.AA22489@everest.ee.umn.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!everest.ee.umn.edu!cattelan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!everest.ee.umn.edu!cattelan
From: cattelan@everest.ee.umn.edu (Russell Cattelan)
Subject: fileutils 3.3 (chown.c fix)
Message-ID: <199208041515.AA22489@everest.ee.umn.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 4 Aug 1992 05:15:16 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 42