projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.3.3
[debian/amanda]
/
client-src
/
selfcheck.c
diff --git
a/client-src/selfcheck.c
b/client-src/selfcheck.c
index 8cd7b539361b8f7d7fe9c004e0694950e8c75133..7716c89468e8ed656563d49708213ec9a6c2e442 100644
(file)
--- a/
client-src/selfcheck.c
+++ b/
client-src/selfcheck.c
@@
-1,6
+1,7
@@
/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@
-1232,8
+1233,7
@@
print_platform(void)
FILE *release = fopen("/etc/lsb-release", "r");
distro = "Ubuntu";
if (release) {
FILE *release = fopen("/etc/lsb-release", "r");
distro = "Ubuntu";
if (release) {
- char *result;
- while ((result = fgets(line, 1024, release))) {
+ while (fgets(line, 1024, release)) {
if (strstr(line, "DESCRIPTION")) {
platform = strchr(line, '=');
if (platform) platform++;
if (strstr(line, "DESCRIPTION")) {
platform = strchr(line, '=');
if (platform) platform++;
@@
-1280,8
+1280,8
@@
print_platform(void)
if (result) {
platform = line;
}
if (result) {
platform = line;
}
+ fclose(release);
}
}
- fclose(release);
}
amfree(uname);
}
}
amfree(uname);
}