1 --- libgphoto2-2.4.2/packaging/generic/print-camera-list.c.orig 2008-06-23 07:35:41.000000000 +0200
2 +++ libgphoto2-2.4.2/packaging/generic/print-camera-list.c 2008-07-15 21:34:06.378042250 +0200
4 printf("RUN+=\"%s\"\n", pdata->script);
5 } else if (pdata->mode != NULL || pdata->owner != NULL || pdata->group != NULL) {
6 if (pdata->mode != NULL) {
7 - printf("MODE=\"%s\"", pdata->mode);
8 + printf("MODE=\"%s\", RUN=\"/bin/chmod %s $env{DEVICE}\"", pdata->mode, pdata->mode);
9 if (pdata->owner != NULL || pdata->group != NULL) {
13 if (pdata->owner != NULL) {
14 - printf("OWNER=\"%s\"", pdata->owner);
15 + printf("OWNER=\"%s\", RUN=\"/bin/chown %s $env{DEVICE}\"", pdata->owner, pdata->owner);
16 if (pdata->group != NULL) {
20 if (pdata->group != NULL) {
21 - printf("GROUP=\"%s\"", pdata->group);
22 + printf("GROUP=\"%s\", RUN=\"/bin/chgrp %s $env{DEVICE}\"", pdata->group, pdata->group);