phonemgr r282 - in trunk: . libgsm
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: phonemgr r282 - in trunk: . libgsm
- Date: Fri, 14 Mar 2008 17:50:53 +0000 (GMT)
Author: hadess
Date: Fri Mar 14 17:50:53 2008
New Revision: 282
URL: http://svn.gnome.org/viewvc/phonemgr?rev=282&view=rev
Log:
2008-03-14 Bastien Nocera <hadess hadess net>
* libgsm/phonemgr-utils.c (phonemgr_utils_address_is):
Fix utter stupidness checking whether an address is
actually a device path
Modified:
trunk/ChangeLog
trunk/libgsm/phonemgr-utils.c
Modified: trunk/libgsm/phonemgr-utils.c
==============================================================================
--- trunk/libgsm/phonemgr-utils.c (original)
+++ trunk/libgsm/phonemgr-utils.c Fri Mar 14 17:50:53 2008
@@ -109,7 +109,7 @@
{
struct stat buf;
- if (g_stat (addr, &buf) > 0 && S_ISCHR (buf.st_mode)) {
+ if (g_stat (addr, &buf) == 0 && S_ISCHR (buf.st_mode)) {
//FIXME this could also be IrDA
return PHONEMGR_CONNECTION_SERIAL;
} else if (bachk (addr) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]