commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r809 - /crosshurd/trunk/makehurddir.sh


From: sthibault
Subject: r809 - /crosshurd/trunk/makehurddir.sh
Date: Sun, 22 May 2016 14:28:52 -0000

Author: sthibault
Date: Sun May 22 14:28:52 2016
New Revision: 809

URL: http://svn.debian.org/wsvn/pkg-hurd/crosshurd/?sc=1&rev=809
Log:
Avoid overwriting root files...

Modified:
    crosshurd/trunk/makehurddir.sh

Modified: crosshurd/trunk/makehurddir.sh
URL: 
http://svn.debian.org/wsvn/pkg-hurd/crosshurd/crosshurd/trunk/makehurddir.sh?rev=809&op=diff
==============================================================================
--- crosshurd/trunk/makehurddir.sh      (original)
+++ crosshurd/trunk/makehurddir.sh      Sun May 22 14:28:52 2016
@@ -9,6 +9,11 @@
 TARGET=`readlink -f $1`
 DEB_TARGET_GNU_CPU=$2
 DEB_TARGET_GNU_SYSTEM=$3
+
+if [ x"$TARGET" = x ]; then
+  echo "Refused to overwrite inexistent/empty TARGET."
+  exit 1
+fi
 
 . /usr/share/crosshurd/functions
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]