← Commit list

8de331def

Paul Fox
Paul Fox
2005-07-21
FAILED Duration: 21s

Subject

revert 10881, and refix by changing "if (vallen)" to "if (val)". this is per the upstream fix for dash, in dash_0.5.2-6.diff. thanks vodz, for catching this.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+3 -2
@@ -12001,8 +12001,9 @@ setvar(const char *name, const char *val, int flags)
}
INTOFF;
p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen);
- *p++ = '=';
- if (vallen) {
+ *p++ = '\0';
+ if (val) {
+ p[-1] = '=';
p = mempcpy(p, val, vallen);
}
*p = '\0';