Bug 56430
Summary: | ship a readlink outside of tetex | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Bill Crawford <billc> | ||||
Component: | netscape | Assignee: | Bill Nottingham <notting> | ||||
Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | CC: | boni.vivek, ftbfs, rvokal | ||||
Target Milestone: | --- | Keywords: | FutureFeature | ||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-02-21 18:48:15 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Bill Crawford
2001-11-17 21:43:05 UTC
Created attachment 37842 [details]
Fix to /usr/bin/netscape to not break with updated fileutils
FWIW, the ls behavior has been reverted in a later build. Glad to hear it :o) It broke the Unreal Tournament launcher as well. Actually the real solution to stuff like this is for those handly little shell scripts to be rewritten in perl, or for something like the "readlink" from tetex to be imported into sh-utils or fileutils. Either way you can close this one now :o) Could the "readlink" utility be pulled out of tetex? Or this little "C" version be added to fileutils or sh-utils? #include <stdlib.h> #include <unistd.h> #include <limits.h> #include <stdio.h> #include <errno.h> int main (int ac, char **av) { char *buffer; long pathLength; if (ac != 2) { (void) fprintf (stderr, "usage: readlink path\n"); return EXIT_FAILURE; } pathLength = pathconf (av[1], _PC_PATH_MAX); if (pathLength < 0) { perror ("pathconf"); return EXIT_FAILURE; } if (!pathLength) pathLength = _POSIX_PATH_MAX; if (!(buffer = malloc (pathLength + 1))) { perror ("malloc"); return EXIT_FAILURE; } if (0 > (pathLength = readlink (av[1], buffer, pathLength + 1))) { perror ("readlink"); return EXIT_FAILURE; } if (EOF == puts (buffer)) { perror ("fputs"); return EXIT_FAILURE; } return EXIT_SUCCESS; } The netscape shellcode will be changed in 4.79-1 anyway, FWIW. Changing subject accordingly. netscape will not be in future Red Hat Linux products; hence, these issues will most likely not be fixed. Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. *** Bug 599835 has been marked as a duplicate of this bug. *** Please ignore the previous comment as during the duplicate resolution I messed up the bug number |