Changeset: 1fd7a5999c1e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1fd7a5999c1e
Modified Files:
sql/src/backends/monet5/merovingian/monetdb.c
Branch: Jun2010
Log Message:
Add forgotten check if chdir succeeds
diffs (16 lines):
diff -r a9a7bdcbe1e0 -r 1fd7a5999c1e
sql/src/backends/monet5/merovingian/monetdb.c
--- a/sql/src/backends/monet5/merovingian/monetdb.c Mon Jul 26 12:23:56
2010 +0200
+++ b/sql/src/backends/monet5/merovingian/monetdb.c Mon Jul 26 12:25:54
2010 +0200
@@ -1486,7 +1486,11 @@
/* avoid overrunning the sun_path buffer by moving into the
* directory where the UNIX socket resides (sun_path is
* typically around 108 chars long) */
- chdir(dbfarm);
+ if (chdir(dbfarm) < 0) {
+ fprintf(stderr, "monetdb: could not move to dbfarm
'%s': %s\n",
+ dbfarm, strerror(errno));
+ return(1);
+ }
mero_host = ".merovingian_control";
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list