1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+ * Release of E2fsprogs 1.14
+
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
* configure.in (YEAR): Allow a 4-digit year for the version date,
so we can be Y2K politically correct. (The date isn't
used for anything except display purposes, but it should
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * message.c (safe_print): New function which prints strings,
+ converting non-printable characters using the '^' and
+ M-notation. This function is now used to print directory
+ name entries and pathnames.
+
Mon Jan 4 02:28:59 1999 Theodore Y. Ts'o <tytso@mit.edu>
* unix.c (main): Reset the context before calling ext2fs_close(),
};
/*
+ * This function does "safe" printing. It will convert non-printable
+ * ASCII characters using '^' and M- notation.
+ */
+static void safe_print(const unsigned char *cp, int len)
+{
+ unsigned char ch;
+
+ if (len < 0)
+ len = strlen(cp);
+
+ while (len--) {
+ ch = *cp++;
+ if (ch > 128) {
+ fputs("M-", stdout);
+ ch -= 128;
+ }
+ if (ch < 32) {
+ fputc('^', stdout);
+ ch += 32;
+ }
+ fputc(ch, stdout);
+ }
+}
+
+
+/*
* This function prints a pathname, using the ext2fs_get_pathname
* function
*/
if (retval)
fputs("???", stdout);
else {
- fputs(path, stdout);
+ safe_print(path, -1);
ext2fs_free_mem((void **) &path);
}
}
len = EXT2_NAME_LEN;
if (len > dirent->rec_len)
len = dirent->rec_len;
- printf("%.*s", len, dirent->name);
+ safe_print(dirent->name, len);
break;
case 'r':
printf("%u", dirent->rec_len);
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
Mon Jan 4 02:34:53 1999 Theodore Y. Ts'o <tytso@mit.edu>
* uuid.c: Use asm/types.h instead of linux/types.h, to be
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1999-01-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
* inode.c (ext2fs_read_inode, ext2fs_write_inode): Check to see if
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
Mon Jan 4 00:05:14 1999 Theodore Y. Ts'o <tytso@mit.edu>
* mk_cmds.sh.in (TMP): Fixed portability bug in shell script; we
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+ * Release of E2fsprogs 1.14
+
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
* fsck.8.in: Clarified and expanded the documentation for the -A
switch.
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.13