Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37518886
en ru br
Репозитории ALT
S:2.7.12-alt1
5.1: 2.3.8-alt1
4.1: 2.3.6-alt1
4.0: 2.3.3-alt1
3.0: 2.2.1-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:2.3.7

Группа :: Работа с файлами
Пакет: dar

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: dar-2.3.8-gcc43.patch
Скачать


--- src/testing/test_generic_file.cpp.orig	2005-02-22 20:59:50 +0300
+++ src/testing/test_generic_file.cpp	2008-11-04 00:54:43 +0300
@@ -71,7 +71,7 @@ int main(S_I argc, char *argv[])
     }
 
     fichier f1 = fichier(*ui, argv[1], gf_read_only);
-    S_I fd = ::open(argv[2], O_WRONLY|O_CREAT|O_TRUNC|O_BINARY);
+    S_I fd = ::open(argv[2], O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600);
     if(fd < 0)
     {
         cout << "cannot open "<< argv[2] << endl;
--- src/testing/test_libdar.cpp
+++ src/testing/test_libdar.cpp
@@ -89,7 +89,7 @@
 
 void warning(const string &x, void *context)
 {
-    printf("[%d]%s\n", (U_I)context, x.c_str());
+    printf("[%d]%s\n", (unsigned long)context, x.c_str());
 }
 
 bool question(const string & x, void *context)
@@ -97,7 +97,7 @@
     bool rep = false;
 	    char r;
 
-	    printf("[%d]%s\n", (U_I)context, x.c_str());
+	    printf("[%d]%s\n", (unsigned long)context, x.c_str());
 	    scanf("%c", &r);
 	    rep = r == 'y';
 
@@ -120,7 +120,7 @@
 	     bool has_children,
 	     void *context)
 {
-    ui.printf("[[%d]][%S][%S][%S][%S][%S][%S][%S][%s][%s]\n", (U_I)context, &flag, &perm, &uid, &gid, &size, &date, &filename, is_dir ? "dir" : "not_dir", has_children ? "has children" : "no children");
+    ui.printf("[[%d]][%S][%S][%S][%S][%S][%S][%S][%s][%s]\n", (long)context, &flag, &perm, &uid, &gid, &size, &date, &filename, is_dir ? "dir" : "not_dir", has_children ? "has children" : "no children");
 }
 
 void f2()
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin