Change info not to prepend a header line to the info page
The contents of the line was partly useless (repetition of the command argument) and partly misleading (modification time of the formatted info file, ifndef _WIN32).
This commit is contained in:
parent
a5159d18ea
commit
a4b0aae1e5
1 changed files with 2 additions and 5 deletions
|
@ -154,8 +154,7 @@ info(void)
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
pr("Information on: %s Last modification date: %s",
|
|
||||||
name, ctime(&statb.st_mtime));
|
|
||||||
while (fgets(buf, sizeof(buf), fp) != 0)
|
while (fgets(buf, sizeof(buf), fp) != 0)
|
||||||
pr("%s", buf);
|
pr("%s", buf);
|
||||||
(void)fclose(fp);
|
(void)fclose(fp);
|
||||||
|
@ -369,8 +368,7 @@ info(void)
|
||||||
filename, strerror(errno));
|
filename, strerror(errno));
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
DWORD fAttrib = GetFileAttributes(filename);
|
DWORD fAttrib = GetFileAttributes(filename);
|
||||||
if ((fAttrib == (DWORD)-1) || /* INVALID_FILE_ATTRIBUTES */
|
if ((fAttrib == (DWORD)-1) || /* INVALID_FILE_ATTRIBUTES */
|
||||||
((fAttrib != FILE_ATTRIBUTE_NORMAL) &&
|
((fAttrib != FILE_ATTRIBUTE_NORMAL) &&
|
||||||
|
@ -384,7 +382,6 @@ info(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pr("Information on: %s", name);
|
|
||||||
while (fgets(buf, sizeof(buf), fp) != 0)
|
while (fgets(buf, sizeof(buf), fp) != 0)
|
||||||
pr("%s", buf);
|
pr("%s", buf);
|
||||||
(void)fclose(fp);
|
(void)fclose(fp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue