summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-03-10 21:29:41 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-03-10 21:29:41 -0700
commitb8df8ad34e50a760237bae682a8fe22acb17084a (patch)
treec7dd1185a186b0d17e8a4dfd9f099f1fc3c72d2c /src
parentf51be17447504aed009f3b31fd6868f02019445d (diff)
downloadvyatta-cfg-b8df8ad34e50a760237bae682a8fe22acb17084a.tar.gz
vyatta-cfg-b8df8ad34e50a760237bae682a8fe22acb17084a.zip
buggy file exist test--thanx stig for test case to repro. fixes vpn_smoke regression failure.
Diffstat (limited to 'src')
-rw-r--r--src/common/unionfs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 4e62b01..7c29ad1 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -242,7 +242,7 @@ retrieve_data(char* rel_data_path, GNode *node, char* root, NODE_OPERATION op)
char buf[MAX_LENGTH_HELP_STR];
sprintf(buf,"%s/%s",get_adirp(),rel_data_path);
struct stat s;
- if ((lstat(buf,&s) != 0) && S_ISREG(s.st_mode)) {
+ if (lstat(buf,&s) != 0) {
struct VyattaNode* vn = (struct VyattaNode*)node->data;
vn->_data._operation = K_CREATE_OP;
}
@@ -559,12 +559,6 @@ common_commit_copy_to_live_config(GNode *node, boolean test_mode)
sprintf(abuf_root,"%s",get_adirp());
//only operate on path if it exists
- struct stat s;
- if ((lstat(mbuf,&s) != 0) && S_ISREG(s.st_mode)) {
- printf("common_commit_copy_to_live_config(): failed to find: %s, aborting copy\n",mbuf);
- return;
- }
-
//have to clean out tbuf before copying
sprintf(command, formatpoint5, tbuf);
if (g_debug) {