Avoided double attempt to set lfa flag "i" to newly created directory

This commit is contained in:
2024-09-08 21:26:04 +02:00
parent b2ae46a4cf
commit 1ed76b7bdc
4 changed files with 89 additions and 20 deletions

View File

@@ -180,6 +180,15 @@ int Permstack_push(struct PermiteM **o, char *disk_path, struct stat *stbuf,
int Permstack_pop(struct PermiteM **o, struct PermiteM *stopper,
struct XorrisO *xorriso, int flag);
/* Look for stack item with disk_path
@param immutable bit0= when popping: set chattr immutable bit
bit1= when popping: only set immutable bit
@return 0= nothing found, 1= *stbuf and *immutable are valid
*/
int Permstack_peek(struct PermiteM **o, struct PermiteM *stopper,
struct XorrisO *xorriso,
char *disk_path, struct stat **stbuf, int *immutable,
int flag);
#endif /* ! Xorriso_pvt_auxobj_includeD */