[BACK]Return to ffs.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.sbin / makefs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.sbin/makefs/ffs.c between version 1.45 and 1.46

version 1.45, 2011/10/09 21:33:43 version 1.46, 2012/01/28 02:35:46
Line 784  ffs_populate_dir(const char *dir, fsnode
Line 784  ffs_populate_dir(const char *dir, fsnode
                         continue;               /* skip hard-linked entries */                          continue;               /* skip hard-linked entries */
                 cur->inode->flags |= FI_WRITTEN;                  cur->inode->flags |= FI_WRITTEN;
   
                 if (snprintf(path, sizeof(path), "%s/%s", dir, cur->name)                  if ((size_t)snprintf(path, sizeof(path), "%s/%s/%s", cur->root,
                     >= sizeof(path))                      cur->path, cur->name) >= sizeof(path))
                         errx(1, "Pathname too long.");                          errx(1, "Pathname too long.");
   
                 if (cur->child != NULL)                  if (cur->child != NULL)

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

CVSweb <webmaster@jp.NetBSD.org>