summaryrefslogtreecommitdiff
path: root/src/common/unionfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/unionfs.c')
-rw-r--r--src/common/unionfs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 85607a3..db3addd 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -372,7 +372,17 @@ retrieve_data(char* rel_data_path, GNode *node, const char* root,
if (strncmp(dirp->d_name,DELETED_NODE,4) == 0) {
strcpy(data_buf,dirp->d_name+4); //SKIP THE .WH.
- vn->_data._operation = K_DEL_OP;
+
+ //special test for deleted .disable file.
+ char buf[MAX_LENGTH_HELP_STR];
+ sprintf(buf,"%s/%s/%s/%s",get_adirp(),rel_data_path,data_buf,DISABLE_FILE);
+ struct stat s;
+ if (lstat(buf,&s) == 0) {
+ vn->_data._operation = K_NO_OP;
+ }
+ else {
+ vn->_data._operation = K_DEL_OP;
+ }
}
else {
strcpy(data_buf,dirp->d_name);