Rev 11156: Fix lseek() argument order. in file:///home/jelmer/bzr.samba/4.0-regwrite/

Jelmer Vernooij jelmer at samba.org
Mon Jan 15 23:54:24 GMT 2007


------------------------------------------------------------
revno: 11156
revision-id: jelmer at samba.org-20070115235410-krfav3ng4in38pkx
parent: jelmer at samba.org-20070115170435-ert8ib689dhntd4p
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 4.0-regwrite
timestamp: Tue 2007-01-16 00:54:10 +0100
message:
  Fix lseek() argument order.
modified:
  source/lib/registry/reg_backend_regf.c svn-v2:4132 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0-source%2flib%2fregistry%2freg_backend_nt4.c
=== modified file 'source/lib/registry/reg_backend_regf.c'
--- a/source/lib/registry/reg_backend_regf.c	2007-01-14 15:15:41 +0000
+++ b/source/lib/registry/reg_backend_regf.c	2007-01-15 23:54:10 +0000
@@ -1011,7 +1011,7 @@
 	struct regf_data *regf = hive->backend_data;
 	int i;
 
-	if (lseek(regf->fd, SEEK_SET, 0) == -1) {
+	if (lseek(regf->fd, 0, SEEK_SET) == -1) {
 		DEBUG(0, ("Error lseeking in regf file\n"));
 		return WERR_GENERAL_FAILURE;
 	}
@@ -1021,7 +1021,7 @@
 		return WERR_GENERAL_FAILURE;
 	}
 
-	if (lseek(regf->fd, SEEK_SET, 0x1000) == -1) {
+	if (lseek(regf->fd, 0x1000, SEEK_SET) == -1) {
 		DEBUG(0, ("Error lseeking to 0x1000 in regf file\n"));
 		return WERR_GENERAL_FAILURE;
 	}



More information about the samba-cvs mailing list