Coda File System

Manipulating directory entry of newly created file ...

From: Stephen J. Turnbull <turnbull_at_sk.tsukuba.ac.jp>
Date: Thu, 3 Aug 2000 18:46:00 +0900 (JST)
... doesn't seem to work.

Several of Debian's dpkg utilities have code like the following:

#! /usr/bin/perl
open(Y,"> file.new") ||
    die("open new substvars file \`file.new' failed");
chown(0, 0, "file.new") ||
    die("chown of \`file.new' failed");
close(Y)

which when executed by root in a coda file system dies as follows:

chown of `file.new' failed at ./oops.pl line 4.

unless file.new previously existed.

I seem to recall this is expected behavior (but can't find the
citation).  If so, is this a restriction of Coda, a bug in Coda, or a
bug in the Perl code?

Steve
Received on 2000-08-03 06:13:10