]> arthur.barton.de Git - netatalk.git/commitdiff
CNID fallback for dbd backend, from branch-2-1
authorFrank Lahm <franklahm@googlemail.com>
Thu, 20 May 2010 08:49:11 +0000 (10:49 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 20 May 2010 08:49:11 +0000 (10:49 +0200)
1  2 
etc/afpd/file.c

diff --cc etc/afpd/file.c
index 93b1a169612ab5c4f25e6fd69fc4fb01c0e8baa2,b10330c8aebaeef678a449f46e432988c43b841a..64b7b6068c78f808bd409bf052851cb722d45e76
@@@ -202,9 -202,10 +202,10 @@@ char *set_name(const struct vol *vol, c
                                  (1 << FILPBIT_UNIXPR)))
  
  /* -------------------------- */
 -u_int32_t get_id(struct vol *vol, struct adouble *adp,  const struct stat *st,
 +u_int32_t get_id(const struct vol *vol, struct adouble *adp,  const struct stat *st,
                   const cnid_t did, char *upath, const int len) 
  {
+     static int first = 1;       /* mark if this func is called the first time */
      u_int32_t adcnid;
      u_int32_t dbcnid = CNID_INVALID;