72 |
coerce_to_filename(truename(faslfile), filename); |
coerce_to_filename(truename(faslfile), filename); |
73 |
if (count == 0) |
if (count == 0) |
74 |
count = time(0); |
count = time(0); |
75 |
sprintf(buf,"/tmp/ufas%dxXXXXXX",count++); |
snprintf(buf,sizeof(buf),"/tmp/ufas%dxXXXXXX",count++); |
76 |
/* this is just to allow reloading in the same file twice. |
/* this is just to allow reloading in the same file twice. |
77 |
*/ |
*/ |
78 |
mktemp(buf); |
mkstemp(buf); |
79 |
symlink(filename,buf); |
symlink(filename,buf); |
80 |
{ struct name_list *nl= |
{ struct name_list *nl= |
81 |
(void *) malloc(strlen(buf)+sizeof(struct name_list)); |
(void *) malloc(strlen(buf)+sizeof(struct name_list)); |