🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #51

cp misfeature

#51
From: utzoohenry
Date: Wed, 24 Mar 1982 19:16
12 lines
733 bytes
The command "cp <directory> <file>" will work, but does not yield a very
intelligible file as a result.  Most naive users don't really grasp the
notion that directories are just a special kind of file, and are confused
by the appearance of this strange little gibberish file.  We found this
a headache, and since the command seems singularly useless, we added
the following code just after the assignment to "mode" in cp.c/copy():

	if ((mode&S_IFMT) == S_IFDIR) {
		close(fold);
		fprintf(stderr, "cp: %s is a directory -- ignored.\n", from);
		return(1);
	}
Technical Details
Message-ID: <anews.Autzoo.1503>
Path: arc1-ca.pugleaf.net!utzoo!henry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!henry
From: utzoo!henry
Newsgroups: net.bugs.v7
Subject: cp misfeature
Date: Wed, 24 Mar 1982 19:16:53 +0000
Message-ID: <anews.Autzoo.1503>