Skip to content

Commit

Permalink
fixed chmod of poolPath
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbarratt committed Oct 8, 2020
1 parent 3e91d3c commit dcb6729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backuppc/bpc_poolWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ void bpc_poolWrite_addToPool(bpc_poolWrite_info *info, char *fileName, int v3Poo
unlink(lockFile->s);
redo = 1;
} else {
chmod(poolPath, 0444);
chmod(poolPath->s, 0444);
stat(poolPath->s, &st);
info->retValue = v3PoolFile ? 2 : 0;
info->poolFileSize = st.st_size;
Expand Down Expand Up @@ -837,7 +837,7 @@ void bpc_poolWrite_addToPool(bpc_poolWrite_info *info, char *fileName, int v3Poo
* remove the original file and return
*/
unlink(fileName);
chmod(poolPath, 0444);
chmod(poolPath->s, 0444);
info->retValue = v3PoolFile ? 2 : 0;
info->poolFileSize = st.st_size;
bpc_strBuf_free(poolPath);
Expand Down

0 comments on commit dcb6729

Please sign in to comment.