/dports/security/gnupg/gnupg-2.3.3/kbx/ |
H A D | keybox-util.c | 42 char *bak_name, *tmp_name; in keybox_tmp_names() local 66 bak_name = xtrymalloc (strlen (filename) + (repl?0:4) + 1); in keybox_tmp_names() 67 if (!bak_name) in keybox_tmp_names() 69 strcpy (bak_name, filename); in keybox_tmp_names() 70 strcpy (bak_name + strlen (filename) - (repl?4:0), b_ext); in keybox_tmp_names() 76 xfree (bak_name); in keybox_tmp_names() 84 bak_name = xtrymalloc (strlen (filename) + 2); in keybox_tmp_names() 85 if (!bak_name) in keybox_tmp_names() 87 strcpy (stpcpy (bak_name, filename), "~"); in keybox_tmp_names() 93 xfree (bak_name); in keybox_tmp_names() [all …]
|
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/tdb/tools/ |
H A D | tdbbackup.c | 106 char *bak_name; in main() local 108 bak_name = add_suffix(fname, suffix); in main() 111 if (verify_tdb(fname, bak_name) != 0) { in main() 115 if (file_newer(fname, bak_name) && in main() 116 backup_tdb(fname, bak_name) != 0) { in main() 121 free(bak_name); in main()
|
/dports/net/samba412/samba-4.12.15/lib/tdb/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/databases/tdb/tdb-1.4.3/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/databases/ldb15/ldb-1.5.6/lib/tdb/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/databases/ldb20/ldb-2.0.10/lib/tdb/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/databases/ldb21/ldb-2.1.5/lib/tdb/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/databases/ldb22/ldb-2.2.1/lib/tdb/tools/ |
H A D | tdbbackup.c | 253 static int verify_tdb(const char *fname, const char *bak_name) argument 271 return backup_tdb(bak_name, fname, 0, 0, 0); 350 char *bak_name; local 352 bak_name = add_suffix(fname, suffix); 355 if (verify_tdb(fname, bak_name) != 0) { 359 if (file_newer(fname, bak_name) && 360 backup_tdb(fname, bak_name, hashsize, 366 free(bak_name);
|
/dports/archivers/arj/arj-3.10.22/ |
H A D | rearj.c | 526 char bak_name[CCHMAXPATH]; in convert_archive() local 565 strcpy(bak_name, full_name); in convert_archive() 575 strcpy(bak_name, target_name); in convert_archive() 581 strcat(bak_name, filespec); in convert_archive() 583 strcat(bak_name, dot); in convert_archive() 584 strcat(bak_name, backup_extension); in convert_archive() 754 if(file_unlink(bak_name)) in convert_archive() 755 error(M_CANT_UNLINK, bak_name); in convert_archive() 888 if(file_unlink(bak_name)) in convert_archive() 907 if(file_unlink(bak_name)) in convert_archive() [all …]
|
H A D | arj_user.c | 951 char *bak_name; in finish_processing() local 1094 bak_name=(char *)malloc_msg(far_strlen(M_BAK_EXT)+strlen(archive_name)+1); in finish_processing() 1095 strcpy(bak_name, archive_name); in finish_processing() 1096 entry=split_name(bak_name, NULL, NULL); in finish_processing() 1097 if((ext_ptr=strchr(bak_name+entry, '.'))==NULL) in finish_processing() 1098 msg_strcat(bak_name, M_BAK_EXT); in finish_processing() 1101 file_unlink(bak_name); in finish_processing() 1102 rename_with_check(archive_name, bak_name); in finish_processing() 1103 free(bak_name); in finish_processing()
|
/dports/games/rlvm/rlvm-release-0.14-77-gfabf134a/scripts/ |
H A D | fix_guards.py | 12 bak_name = name + ".bak" variable 18 os.rename(name, bak_name) 20 input = file(bak_name, 'r')
|
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/maint/ |
H A D | add_warning.py | 97 bak_name = fn+".bak" 98 outp = open(bak_name,'w') 103 shutil.move(bak_name, fn)
|
/dports/games/xray_re-tools/xray_re-tools-52721d2/sources/utils/weather_adjuster/ |
H A D | adjust.c | 294 char bak_name[_MAX_PATH]; in adjust_weather() local 297 sprintf(bak_name, "%s.bak", ltx_name); in adjust_weather() 299 if (rename(ltx_name, bak_name) != 0) in adjust_weather() 301 printf("Error renaming %s to %s", ltx_name, bak_name); in adjust_weather() 306 if ((fpin = fopen(bak_name, "r")) == NULL) in adjust_weather() 308 printf("Error opening file %s", bak_name); in adjust_weather()
|
/dports/graphics/xtexcad/xtexcad-2.4.1/ |
H A D | io_trans.c | 528 char bak_name[MAXPATHLEN+4]; in SaveToFile() local 542 strcpy(bak_name, name); in SaveToFile() 543 strcat(bak_name, savesuffix); /* resource's default is ".old" */ in SaveToFile() 544 rename(name, bak_name); /* don't care if no success */ in SaveToFile()
|
/dports/security/gringotts/gringotts-1.2.10/src/ |
H A D | gringotts.c | 277 gchar *bak_name; in backup_file() local 285 bak_name = g_strconcat (filename, BACKUP_SUFFIX, NULL); in backup_file() 287 res = lstat (bak_name, &s); in backup_file() 289 || rename (filename, bak_name)) in backup_file() 291 g_free (bak_name); in backup_file() 295 g_free (bak_name); in backup_file()
|
/dports/graphics/xfig/xfig-3.2.8a/src/ |
H A D | w_file.c | 537 char bak_name[PATH_MAX]; in renamefile() local 539 strcpy(bak_name,file); in renamefile() 540 strcat(bak_name,".bak"); in renamefile() 541 if (rename(file,bak_name) < 0) in renamefile()
|