Commit 014ded27 authored by Leigh Stoller's avatar Leigh Stoller

Fix up tftp directory create.

parent 34a500eb
......@@ -371,7 +371,7 @@ foreach my $dir (@DIRLIST) {
#
# Create a tftp directory for oskit kernels.
#
if (! -e "$TFTPDIR/$pid" && !$isnonlocal) {
if (-e "$TFTPDIR" && ! -e "$TFTPDIR/$pid" && !$isnonlocal) {
if (! mkdir("$TFTPDIR/$pid", 0770)) {
fatal("Could not make directory $TFTPDIR/$pid: $!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment