Comment 21 for bug 711799

Revision history for this message
Theodore Ts'o (tytso) wrote :

The directory names are not enciphered, they are replaced by unique filenames AAA, BAA, CAA, DAA, etc.

The relevant section of code is:

  memset(cp, 'A', dirent->name_len);
  len = dirent->name_len;
  id = name_id[len]++;
  while ((len > 0) && (id > 0)) {
   *cp += id % 26;
   id = id / 26;
   cp++;
   len--;
  }

note the first thing done is to replace the file name with 'AAAA...'. The rest is to change it up so the filenames are unique.