[467] in arla-drinkers
Chown problem with arla
daemon@ATHENA.MIT.EDU (Jim Nance)
Fri Jan 8 16:33:42 1999
From owner-arla-drinkers@stacken.kth.se Fri Jan 08 21:33:41 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 16421 invoked from network); 8 Jan 1999 21:33:39 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 8 Jan 1999 21:33:39 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id WAA14671
for arla-drinkers-list; Fri, 8 Jan 1999 22:26:29 +0100 (MET)
Received: from send203.yahoomail.com (send203.yahoomail.com [205.180.60.155])
by sundance.stacken.kth.se (8.8.8/8.8.8) with SMTP id WAA14667
for <arla-drinkers@stacken.kth.se>; Fri, 8 Jan 1999 22:26:25 +0100 (MET)
Message-ID: <19990108212754.11913.rocketmail@send203.yahoomail.com>
Received: from [207.220.204.26] by send203.yahoomail.com; Fri, 08 Jan 1999 13:27:54 PST
Date: Fri, 8 Jan 1999 13:27:54 -0800 (PST)
From: Jim Nance <jim_nance@yahoo.com>
Subject: Chown problem with arla
To: arla-drinkers@stacken.kth.se
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Hello All,
I am tracing down a problem that occurs when I
use the mv command to move a file from an NFS mounted
partition onto an AFS mounted partition. This is with
the 12/28 snapshot, a Linux 2.2.0-pre5 kernel and
a redhat 5.2 system. The debugger output shows what
is happening pretty well:
216 if (chown (dest, source_stats.st_uid, source_stats.st_gid)
(gdb) p errno
$9 = 18
(gdb) p errno=0
$10 = 0
(gdb) p chown (dest, source_stats.st_uid, source_stats.st_gid)
$11 = 1
(gdb) p errno
$12 = 0
Basically the chown system call is returning 1. According to the man
page it can only return 0 or -1.
The mv command is getting confused by this. The mv
command is changing the owner/group to the value that
they already have so I think the call should return 0.
Thanks,
Jim
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com