]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/findlib/protos.h
authorAlain Spineux <alain@baculasystems.com>
Mon, 20 Apr 2020 14:44:34 +0000 (16:44 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:16 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Aug 28 17:14:31 2018 +0200

    snapshot: maintain both paths instead of stripping and unstripping

    - snap_fname is the path inside the snapshot used for "system" operation
    - fname is the path from the FileSet used for display and for SD or DIR
      "computation"
    - when snapshot is not in used, both are equal

bacula/src/findlib/protos.h

index cef90da3b9df39b409a3d45e21a4ab2679055e02..b3b0ffb986f63e3d25f51bc4663e59124bd161e3 100644 (file)
@@ -23,7 +23,7 @@
 
 /* from attribs.c */
 bool check_directory_acl(char **last_dir, alist *dir_acl, const char *path);
-
+bool has_access(alist *uid, alist *gid, struct stat *statp);
 void    encode_stat       (char *buf, struct stat *statp, int stat_size, int32_t LinkFI, int data_stream);
 int     decode_stat       (char *buf, struct stat *statp, int stat_size, int32_t *LinkFI);
 int32_t decode_LinkFI     (char *buf, struct stat *statp, int stat_size);
@@ -60,7 +60,7 @@ struct s_included_file *get_next_included_file(FF_PKT *ff,
 /* From find_one.c */
 int   find_one_file(JCR *jcr, FF_PKT *ff,
                int handle_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level),
-               char *p, dev_t parent_device, bool top_level);
+               char *fname, char *snap_fname, dev_t parent_device, bool top_level);
 int   term_find_one(FF_PKT *ff);
 bool  has_file_changed(JCR *jcr, FF_PKT *ff_pkt);
 bool check_changes(JCR *jcr, FF_PKT *ff_pkt);
@@ -89,3 +89,4 @@ bool drivetype(const char *fname, char *fs, int fslen);
 
 /* from bfile.c -- see bfile.h */
 /* from namedpipe.c -- see namedpipe.h */
+