Improved rejection message in case case of local root directory as input file

master
Thomas Schmitt 3 years ago
parent 4db0aab0cb
commit 7066fd4e2f
  1. 7
      xorriso/iso_manip.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -871,6 +871,13 @@ int Xorriso_graft_in(struct XorrisO *xorriso, void *boss_iter,
apt= npt= path;
if(!(flag & (1 | 1024))) {
if(disk_path[0] == 0) {
Xorriso_msgs_submit(xorriso, 0, "/", 0, "ERRFILE", 0);
sprintf(xorriso->info_text,
"Will not graft-in the whole local filesystem by path '/'");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
{ret= 0; goto ex;}
}
ret= lstat(disk_path, &stbuf);
if(ret!=-1) {
if(S_ISDIR(stbuf.st_mode))

@ -1 +1 @@
#define Xorriso_timestamP "2019.09.01.071701"
#define Xorriso_timestamP "2019.09.01.071948"

Loading…
Cancel
Save