version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_resurrection_c = | | * static char *rcsid_resurrection_c = |
* "$Id: resurrection.c,v 1.15 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: resurrection.c,v 1.16 2005/09/04 16:58:13 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
strcpy(newname,filename); | | strcpy(newname,filename); |
strcat(newname,".dead"); | | strcat(newname,".dead"); |
| | |
if(!rename(filename,newname)) { | | if(rename(filename,newname) != 0) { |
perror(filename); | | LOG(llevError, "Cannot rename dead player's file %s into %s: %s\n", filename, newname, strerror_local(errno)); |
perror(newname); | | |
} | | } |
} | | } |
| | |
| | |
strcpy(buf2,buf); | | strcpy(buf2,buf); |
strcat(buf,".dead"); | | strcat(buf,".dead"); |
if(rename(buf2,buf)== -1){ | | if(rename(buf2,buf)== -1){ |
LOG(llevDebug, "Crossfire character rename to dead: %s --", buf); | | LOG(llevError, "Cannot rename dead player's file %s into %s: %s\n", buf2, buf, strerror_local(errno)); |
perror("rename()"); | | |
} | | } |
} | | } |
| | |