projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'upstream/3.3.3'
[debian/amanda]
/
client-src
/
selfcheck.c
diff --git
a/client-src/selfcheck.c
b/client-src/selfcheck.c
index 746093b571367d0f70803533ddd781cc1eaefdc0..dfffe2e3c8c214fe3b9b337d97c7ae88dd089f29 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
@@
-1233,8
+1234,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++;
@@
-1281,8
+1281,8
@@
print_platform(void)
if (result) {
platform = line;
}
if (result) {
platform = line;
}
+ fclose(release);
}
}
- fclose(release);
}
amfree(uname);
}
}
amfree(uname);
}