comparison toys/readlink.c @ 587:82ffae226c40

Convert another realpath use to xrealpath().
author Rob Landley <rob@landley.net>
date Fri, 01 Jun 2012 17:59:11 -0500
parents 163498bf547b
children
comparison
equal deleted inserted replaced
586:0353ed084559 587:82ffae226c40
33 { 33 {
34 char *s; 34 char *s;
35 35
36 // Calculating full cannonical path? 36 // Calculating full cannonical path?
37 37
38 if (CFG_READLINK_F && toys.optflags) s = realpath(*toys.optargs, NULL); 38 if (CFG_READLINK_F && toys.optflags) s = xrealpath(*toys.optargs);
39 else s = xreadlink(*toys.optargs); 39 else s = xreadlink(*toys.optargs);
40 40
41 if (s) { 41 if (s) {
42 xputs(s); 42 xputs(s);
43 if (CFG_TOYBOX_FREE) free(s); 43 if (CFG_TOYBOX_FREE) free(s);