From 2ec00ce50fb50def0e9e27d39948789b9bd81bc1 Mon Sep 17 00:00:00 2001 From: "edwin%woudt.nl" Date: Mon, 14 Jun 1999 22:36:19 +0000 Subject: [PATCH] Oops, lameness. Also: switch the two comments on the previous commits of these two files. git-svn-id: svn://10.0.0.236/trunk@35250 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/grendel/dog/mail/nntp/NNTPStore.java | 7 ++++--- mozilla/grendel/dog/mail/nntp/Newsgroup.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mozilla/grendel/dog/mail/nntp/NNTPStore.java b/mozilla/grendel/dog/mail/nntp/NNTPStore.java index 52330919d65..6320af71d55 100644 --- a/mozilla/grendel/dog/mail/nntp/NNTPStore.java +++ b/mozilla/grendel/dog/mail/nntp/NNTPStore.java @@ -16,7 +16,7 @@ * The Initial Developer of the Original Code is dog. * Portions created by dog are Copyright (C) 1998 dog . All Rights Reserved. * - * Contributor(s): n/a. + * Contributor(s): Edwin Woudt */ package dog.mail.nntp; @@ -411,14 +411,15 @@ public class NNTPStore extends Store implements StatusSource { // Attempts to discover which newsgroups exist and which articles have been read. void readNewsrc() { try { + File newsrc; String osname = System.getProperties().getProperty("os.name"); if (osname.startsWith("Windows") || osname.startsWith("Win32") || osname.startsWith("Win16") || osname.startsWith("16-bit Windows")) { - File newsrc = new File(System.getProperty("user.home")+File.separator+"news-"+getHostName()+".rc"); + newsrc = new File(System.getProperty("user.home")+File.separator+"news-"+getHostName()+".rc"); if (!newsrc.exists()) newsrc = new File(System.getProperty("user.home")+File.separator+"news.rc"); } else { - File newsrc = new File(System.getProperty("user.home")+File.separator+".newsrc-"+getHostName()); + newsrc = new File(System.getProperty("user.home")+File.separator+".newsrc-"+getHostName()); if (!newsrc.exists()) newsrc = new File(System.getProperty("user.home")+File.separator+".newsrc"); } diff --git a/mozilla/grendel/dog/mail/nntp/Newsgroup.java b/mozilla/grendel/dog/mail/nntp/Newsgroup.java index 58bc0e48c2a..6399063d1d8 100644 --- a/mozilla/grendel/dog/mail/nntp/Newsgroup.java +++ b/mozilla/grendel/dog/mail/nntp/Newsgroup.java @@ -16,7 +16,7 @@ * The Initial Developer of the Original Code is dog. * Portions created by dog are Copyright (C) 1998 dog . All Rights Reserved. * - * Contributor(s): n/a. + * Contributor(s): Edwin Woudt */ package dog.mail.nntp;