touch used on an unloaded remote file should load the file

This commit is contained in:
Lisa Milne 2023-11-11 17:49:16 +10:00
parent 26d3686e2b
commit 71d513a65e

View file

@ -231,9 +231,18 @@ Options:
return 1;
}
function loadRemote(fd) {
if (!fd) {
io.error('unable to create file: '+file);
io.exit(1);
return;
}
io.exit(0);
}
if (!stdio.creat(file)) {
io.error('unable to create file: '+file);
return 1;
var fd = stdio.open(file,loadRemote);
return null;
}
return 0;