From 4256643ef2d30ee64b3f49aaba5e3ba91cd146da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Sat, 31 Jan 1998 19:58:05 -0800
Subject: [PATCH] bugfix

Rev: NT/tools/cp:1.4
Rev: NT/tools/mkdir:1.4
---
 NT/tools/cp    | 2 +-
 NT/tools/mkdir | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NT/tools/cp b/NT/tools/cp
index 554acd66db..5371dfd592 100755
--- a/NT/tools/cp
+++ b/NT/tools/cp
@@ -4,7 +4,7 @@ inherit "lib.pike";
 
 int main(int argc, string *argv)
 {
-  if(sscanf(argv[-1],"%*[a-zA-Z]:%*s"))
+  if(sscanf(argv[-1],"%*[a-zA-Z]:%*s")==2)
   {
     argv[0]="copy";
     exit(do_cmd( Array.map(argv,fixpath)));
diff --git a/NT/tools/mkdir b/NT/tools/mkdir
index 8529a862db..3334077efa 100755
--- a/NT/tools/mkdir
+++ b/NT/tools/mkdir
@@ -4,7 +4,7 @@ inherit "lib.pike";
 
 int main(int argc, string *argv)
 {
-  if(sscanf(argv[-1],"%*[a-zA-Z]:%*s"))
+  if(sscanf(argv[-1],"%*[a-zA-Z]:%*s")==2)
   {
     argv[0]="mkdir";
     exit(do_cmd( Array.map(argv,fixpath)));
-- 
GitLab