Fossil SCM

For safety, the --verily option to clean should force all symlinks to be treated as normal content files.

mistachkin 2017-02-14 03:04 UTC symlinks
Commit 8fdf8cbe9cb5c72346b2f91d1379b355b6d3a8e0
1 file changed +6 -4
+6 -4
--- src/checkin.c
+++ src/checkin.c
@@ -900,13 +900,14 @@
900900
**
901901
** The default values for --clean, --ignore, and --keep are determined by
902902
** the (versionable) clean-glob, ignore-glob, and keep-glob settings.
903903
**
904904
** The --verily option ignores the keep-glob and ignore-glob settings and
905
-** turns on --force, --emptydirs, --dotfiles, and --disable-undo. Use the
906
-** --verily option when you really want to clean up everything. Extreme
907
-** care should be exercised when using the --verily option.
905
+** turns on the options --force, --emptydirs, --dotfiles, --disable-undo,
906
+** and --no-dir-symlinks. Use the --verily option when you really want
907
+** to clean up everything. Extreme care should be exercised when using
908
+** the --verily option.
908909
**
909910
** Options:
910911
** --allckouts Check for empty directories within any checkouts
911912
** that may be nested within the current one. This
912913
** option should be used with great care because the
@@ -997,11 +998,12 @@
997998
verilyFlag = allFileFlag = allDirFlag = 1;
998999
emptyDirsFlag = 1;
9991000
disableUndo = 1;
10001001
scanFlags |= SCAN_ALL;
10011002
zCleanFlag = 0;
1002
- g.fNoDirSymlinks = 1;
1003
+ g.fNoDirSymlinks = 1; /* Forbid symlink directory traversal. */
1004
+ g.allowSymlinks = 1; /* Treat symlink files as content. */
10031005
}
10041006
if( zIgnoreFlag==0 && !verilyFlag ){
10051007
zIgnoreFlag = db_get("ignore-glob", 0);
10061008
}
10071009
if( zKeepFlag==0 && !verilyFlag ){
10081010
--- src/checkin.c
+++ src/checkin.c
@@ -900,13 +900,14 @@
900 **
901 ** The default values for --clean, --ignore, and --keep are determined by
902 ** the (versionable) clean-glob, ignore-glob, and keep-glob settings.
903 **
904 ** The --verily option ignores the keep-glob and ignore-glob settings and
905 ** turns on --force, --emptydirs, --dotfiles, and --disable-undo. Use the
906 ** --verily option when you really want to clean up everything. Extreme
907 ** care should be exercised when using the --verily option.
 
908 **
909 ** Options:
910 ** --allckouts Check for empty directories within any checkouts
911 ** that may be nested within the current one. This
912 ** option should be used with great care because the
@@ -997,11 +998,12 @@
997 verilyFlag = allFileFlag = allDirFlag = 1;
998 emptyDirsFlag = 1;
999 disableUndo = 1;
1000 scanFlags |= SCAN_ALL;
1001 zCleanFlag = 0;
1002 g.fNoDirSymlinks = 1;
 
1003 }
1004 if( zIgnoreFlag==0 && !verilyFlag ){
1005 zIgnoreFlag = db_get("ignore-glob", 0);
1006 }
1007 if( zKeepFlag==0 && !verilyFlag ){
1008
--- src/checkin.c
+++ src/checkin.c
@@ -900,13 +900,14 @@
900 **
901 ** The default values for --clean, --ignore, and --keep are determined by
902 ** the (versionable) clean-glob, ignore-glob, and keep-glob settings.
903 **
904 ** The --verily option ignores the keep-glob and ignore-glob settings and
905 ** turns on the options --force, --emptydirs, --dotfiles, --disable-undo,
906 ** and --no-dir-symlinks. Use the --verily option when you really want
907 ** to clean up everything. Extreme care should be exercised when using
908 ** the --verily option.
909 **
910 ** Options:
911 ** --allckouts Check for empty directories within any checkouts
912 ** that may be nested within the current one. This
913 ** option should be used with great care because the
@@ -997,11 +998,12 @@
998 verilyFlag = allFileFlag = allDirFlag = 1;
999 emptyDirsFlag = 1;
1000 disableUndo = 1;
1001 scanFlags |= SCAN_ALL;
1002 zCleanFlag = 0;
1003 g.fNoDirSymlinks = 1; /* Forbid symlink directory traversal. */
1004 g.allowSymlinks = 1; /* Treat symlink files as content. */
1005 }
1006 if( zIgnoreFlag==0 && !verilyFlag ){
1007 zIgnoreFlag = db_get("ignore-glob", 0);
1008 }
1009 if( zKeepFlag==0 && !verilyFlag ){
1010

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button