]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/filetypes.h
authorAlain Spineux <alain@baculasystems.com>
Tue, 12 May 2020 20:32:28 +0000 (22:32 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:18 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Sat Apr 28 07:42:58 2018 +0200

    win32: Rewrite of the stat() and reparse point detection

    - combine all stat() functions
    - statDir() i& stat2() are not used anymore
    - adjuste find_one for directory symlink

bacula/src/filetypes.h

index 81664652a208f454033f0ec3f43a2b42b876b40c..7b766c43362378d35dc0d585188d7b832d3f34ff 100644 (file)
@@ -20,6 +20,7 @@
  * Stream definitions.  Split from baconfig.h Nov 2010
  *
  *  Kern Sibbald, MM
+ *
  */
 
 #ifndef __BFILETYPES_H
 #define FT_INVALIDFS 19               /* File system not allowed for */
 #define FT_INVALIDDT 20               /* Drive type not allowed for */
 #define FT_REPARSE   21               /* Win NTFS reparse point */
+/* A FILE Symlink is a reparse point but it is handle as a FT_REG file */
 #define FT_PLUGIN    22               /* Plugin generated filename */
 #define FT_DELETED   23               /* Deleted file entry */
 #define FT_BASE      24               /* Duplicate base file entry */
 #define FT_RESTORE_FIRST 25           /* Restore this "object" first */
-#define FT_JUNCTION  26               /* Win32 Junction point */
+#define FT_JUNCTION  26               /* Win32 Junction point or Symlink to a dir */
 #define FT_PLUGIN_CONFIG 27           /* Object for Plugin configuration */
 #define FT_PLUGIN_CONFIG_FILLED 28    /* Object for Plugin configuration filled by Director */