re-introduce old nss im too tired for this

This commit is contained in:
wuggy 2026-06-30 06:37:32 +01:00
commit 3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions

View file

@ -16,7 +16,7 @@
/* commercial compression */
#include "jzlib.h"
#if defined(XP_UNIX)
#if defined(XP_UNIX) || defined(XP_BEOS)
#include "sys/stat.h"
#endif
@ -219,7 +219,7 @@ JAR_extract(JAR *jar, char *path, char *outpath)
(unsigned int)phy->compression);
}
#if defined(XP_UNIX)
#if defined(XP_UNIX) || defined(XP_BEOS)
if (phy->mode)
chmod(outpath, 0400 | (mode_t)phy->mode);
#endif
@ -755,16 +755,14 @@ jar_listzip(JAR *jar, JAR_FILE fp)
ZZ_AppendLink(jar->phy, ent);
pos = phy->offset + phy->length;
} else if (sigVal == CSIG) {
#if defined(XP_UNIX)
unsigned int attr = 0;
#endif
if (JAR_FREAD(fp, Central, sizeof *Central) != sizeof *Central) {
/* apparently truncated archive */
err = JAR_ERR_CORRUPT;
goto loser;
}
#if defined(XP_UNIX)
#if defined(XP_UNIX) || defined(XP_BEOS)
/* with unix we need to locate any bits from
the protection mask in the external attributes. */
attr = Central->external_attributes[2]; /* magic */