Lines Matching refs:backupName
109 char backupName[400]; in saveJPGFile() local
116 strncpy(backupName, filename, 395); in saveJPGFile()
117 strcat(backupName, ".t"); in saveJPGFile()
121 ALOGE("removing backup %s", backupName); in saveJPGFile()
123 unlink(backupName); in saveJPGFile()
127 ALOGE("rename %s to %s", filename, backupName); in saveJPGFile()
129 rename(filename, backupName); in saveJPGFile()
139 ALOGE("stating old file %s", backupName); in saveJPGFile()
141 if (stat(backupName, &buf) == 0){ in saveJPGFile()
154 ALOGE("unlinking old file %s", backupName); in saveJPGFile()
156 unlink(backupName); in saveJPGFile()
165 rename(backupName, filename); in saveJPGFile()