aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-02 23:55:30 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-02 23:55:30 +0000
commite3ed6571513815dadeada9f65eb941a6deea49e0 (patch)
tree436a0c4360e0f23ab8b95f9e18830d060a2131c8
parent191c6b97c84a4680eb04ff42a4d420eac0d8d8e8 (diff)
downloadfetchmail-e3ed6571513815dadeada9f65eb941a6deea49e0.tar.gz
fetchmail-e3ed6571513815dadeada9f65eb941a6deea49e0.tar.bz2
fetchmail-e3ed6571513815dadeada9f65eb941a6deea49e0.zip
Use a system-independent way to get version.
svn path=/trunk/; revision=2370
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 419e7d01..08978162 100644
--- a/interface.c
+++ b/interface.c
@@ -46,7 +46,7 @@ static char *netdevfmt;
void interface_init(void)
/* figure out which /roc/dev/net format to use */
{
- FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
+ FILE *fp = popen("uname -r", "r"); /* still wins if /proc is out */
/* pre-linux-2.2 format -- transmit packet count in 8th field */
netdevfmt = "%d %d %*d %*d %*d %d %*d %d %*d %*d %*d %*d %d";