Improved rejection message in case case of local root directory as input file
This commit is contained in:
parent
4db0aab0cb
commit
7066fd4e2f
@ -871,6 +871,13 @@ int Xorriso_graft_in(struct XorrisO *xorriso, void *boss_iter,
|
|||||||
apt= npt= path;
|
apt= npt= path;
|
||||||
|
|
||||||
if(!(flag & (1 | 1024))) {
|
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);
|
ret= lstat(disk_path, &stbuf);
|
||||||
if(ret!=-1) {
|
if(ret!=-1) {
|
||||||
if(S_ISDIR(stbuf.st_mode))
|
if(S_ISDIR(stbuf.st_mode))
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2019.09.01.071701"
|
#define Xorriso_timestamP "2019.09.01.071948"
|
||||||
|
Loading…
Reference in New Issue
Block a user