Merge branch 'altlinux-4.0'
This commit is contained in:
commit
c56e3cf71d
@ -80,15 +80,16 @@ int rpmReadPackageManifest(FD_t fd, int * argcPtr, const char *** argvPtr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Skip comments. */
|
/* Skip leading whitespaces. */
|
||||||
if ((se = strchr(s, '#')) != NULL) *se = '\0';
|
s += strspn(s, " \f\n\r\t\v");
|
||||||
|
|
||||||
|
/* Skip lines starting with # symbol. */
|
||||||
|
if (*s == '#') continue;
|
||||||
|
|
||||||
|
/* Trim trailing newline characters. */
|
||||||
|
se = s + strcspn(s, "\n\r");
|
||||||
|
*se = '\0';
|
||||||
|
|
||||||
/* Trim white space. */
|
|
||||||
se = s + strlen(s);
|
|
||||||
while (se > s && (se[-1] == '\n' || se[-1] == '\r'))
|
|
||||||
*(--se) = '\0';
|
|
||||||
while (*s && strchr(" \f\n\r\t\v", *s) != NULL)
|
|
||||||
s++;
|
|
||||||
if (*s == '\0') continue;
|
if (*s == '\0') continue;
|
||||||
|
|
||||||
/* Insure that file contains only ASCII */
|
/* Insure that file contains only ASCII */
|
||||||
|
Loading…
Reference in New Issue
Block a user