Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 84228
Collapse All | Expand All

(-)sysfsutils-1.2.0/lib/sysfs_dir.c.original (-1 / +2 lines)
Lines 194-200 Link Here
194
			dprintf("Error reading attribute\n");
194
			dprintf("Error reading attribute\n");
195
			return -1;
195
			return -1;
196
		}
196
		}
197
		if ((strncmp(sysattr->value, new_value, sysattr->len)) == 0) {
197
		if (((strncmp(sysattr->value, new_value, sysattr->len)) == 0)&&
198
		    (len == sysattr->len)) {
198
			dprintf("Attr %s already has the requested value %s\n",
199
			dprintf("Attr %s already has the requested value %s\n",
199
					sysattr->name, new_value);
200
					sysattr->name, new_value);
200
			return 0;	
201
			return 0;	

Return to bug 84228