[126] in The Cryptographic File System users list

home help back first fref pref prev next nref lref last post

CFS symbolic link bug?

daemon@ATHENA.MIT.EDU (Rob Stampfli)
Wed Mar 24 17:13:48 1999

From owner-cfs-users@nsa.research.att.com Wed Mar 24 22:13:47 1999
Return-Path: <owner-cfs-users@nsa.research.att.com>
Delivered-To: cfs-mtg@bloom-picayune.mit.edu
Received: (qmail 3564 invoked from network); 24 Mar 1999 22:13:45 -0000
Received: from unknown (HELO mail-green.research.att.com) (135.207.30.103)
  by bloom-picayune.mit.edu with SMTP; 24 Mar 1999 22:13:45 -0000
Received: from amontillado.research.att.com (amontillado.research.att.com [135.207.24.32])
	by mail-green.research.att.com (Postfix) with ESMTP
	id C7E151E020; Wed, 24 Mar 1999 17:13:43 -0500 (EST)
Received: from nsa.research.att.com (majordomo@nsa.research.att.com [135.207.24.155])
	by amontillado.research.att.com (8.8.7/8.8.7) with ESMTP id RAA06588;
	Wed, 24 Mar 1999 17:13:40 -0500 (EST)
Received: (from majordomo@localhost) by nsa.research.att.com (8.7.3/8.7.3) id RAA17486 for cfs-users-list; Wed, 24 Mar 1999 17:09:09 -0500 (EST)
Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id RAA17482 for <cfs-users@nsa.research.att.com>; Wed, 24 Mar 1999 17:09:06 -0500 (EST)
Received: by mail-blue.research.att.com (Postfix)
	id E9ED14CE2B; Wed, 24 Mar 1999 17:11:43 -0500 (EST)
Delivered-To: cfs-users@research.att.com
Received: from elektro.cmhnet.org (elektro.com [192.188.133.3])
	by mail-blue.research.att.com (Postfix) with ESMTP id 744724CE29
	for <cfs-users@research.att.com>; Wed, 24 Mar 1999 17:11:39 -0500 (EST)
Received: (from nuucp@localhost)
	by elektro.cmhnet.org (8.9.1b+Sun/8.9.3/cs) id RAA26041
	for research.att.com!cfs-users; Wed, 24 Mar 1999 17:10:40 -0500 (EST)
X-Authentication-Warning: elektro.cmhnet.org: nuucp set sender to colnet!res using -f
>Received: by colnet.cmhnet.org (Smail3.1.28.1 #4)
	id m10Pv70-0008FNC; Wed, 24 Mar 99 16:22 EST
Message-Id: <m10Pv70-0008FNC@colnet.cmhnet.org>
Date: Wed, 24 Mar 99 16:22 EST
From: res@colnet.cmhnet.org (Rob Stampfli)
To: cfs-users@research.att.com
Subject: CFS symbolic link bug?
Received: from colnet by elektro.cmhnet.org; Wed, 24 Mar 1999 17:10 EST
Content-Type: text
Sender: owner-cfs-users@research.att.com
Precedence: bulk
Return-Path: <owner-cfs-users@nsa.research.att.com>

I came across the following "bug" recently while working in a CFS encrypted
directory:

                $ ln -s 7777777 a
                $ ln -s 4444 b
                $ ls a b | cpio -ovac >cpio.out
                $ cpio -ivct <cpio.out
                120777 res        16  Mar 23 09:11:20 1999  a -> 7777777
                120777 res        16  Mar 23 09:11:33 1999  b -> 4444777
                $

(And, of course, if you restore from the cpio archive, the second symbolic
link is created consistently, as shown above, but incorrectly.)

This is on a SunOS 4.1.4 system using the standard cpio.  Neither tar
nor paxcpio exhibit these symptoms.  Nor does cpio, for that matter,
except from a CFS encrypted directory.  It is unclear to me whether this
is a CFS problem, or a latent bug in cpio.

Anyone have a clue as to the cause?  I looked at the CFS code briefly and
did not see anything obvious in the symlink area (readlink() calls).
Anyone else's Unix exhibit this anomaly?

Rob


home help back first fref pref prev next nref lref last post