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

This commit is contained in:
Thomas Schmitt 2019-09-01 09:22:38 +02:00
parent 4db0aab0cb
commit 7066fd4e2f
2 changed files with 8 additions and 1 deletions

View File

@ -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))

View File

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