Commits

Guido van Rossum  committed db16ca4

Exit when a mv or cp fails (Sjoerd Mullender).

  • Participants
  • Parent commits d178227
  • Branches legacy-trunk

Comments (0)

Files changed (1)

 
 # Move or copy the file name to the temp name
 
-$doit $instcmd $src $dsttmp
+$doit $instcmd $src $dsttmp || exit $?
 
 # and set any options; do chmod last to preserve setuid bits
 
 # Now rename the file to the real destination.
 
 $doit $rmcmd $dst
-$doit $mvcmd $dsttmp $dst
+$doit $mvcmd $dsttmp $dst || exit $?
 
 
 exit 0