]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: don't reserve a device number
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Apr 2014 16:48:22 +0000 (09:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Apr 2014 16:48:52 +0000 (09:48 -0700)
commitd0294ff3b90430750a631556277c75f1a555dd44
treeaaa66ddaa6d6c39b18ddfd534815e1be838bfdc1
parent7c3e6be6d70a944fa2cda1f256d01c0fa8928f0b
cp: don't reserve a device number

* src/copy.c (copy_internal): Replace dev_t arg DEVICE with struct
stat pointer arg PARENT.  All callers changed.  This removes an
unwarranted assumption that dev_t values of 0 cannot occur in file
systems.  See: http://bugs.gnu.org/17179
src/copy.c