[LON-CAPA-cvs] cvs: loncom / lond
raeburn
lon-capa-cvs@mail.lon-capa.org
Wed, 08 Dec 2004 22:45:34 -0000
raeburn Wed Dec 8 17:45:34 2004 EDT
Modified files:
/loncom lond
Log:
Sub-directories were not being made for user uploads where ufile argument included a directory, e.g., aboutme/myphoto.gif. Correction to refactoring from v1.264
Index: loncom/lond
diff -u loncom/lond:1.266 loncom/lond:1.267
--- loncom/lond:1.266 Sat Nov 27 12:23:08 2004
+++ loncom/lond Wed Dec 8 17:45:33 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.266 2004/11/27 17:23:08 raeburn Exp $
+# $Id: lond,v 1.267 2004/12/08 22:45:33 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -58,7 +58,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.266 $'; #' stupid emacs
+my $VERSION='$Revision: 1.267 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -1960,7 +1960,7 @@
# Note that any regular files in the way of this path are
# wiped out to deal with some earlier folly of mine.
- if (!&mkpath($udir.'/')) {
+ if (!&mkpath($udir.'/'.$ufile)) {
&Failure($client, "unable_to_create\n", $userinput);
}