ClusterLabs/pacemaker — pull request #164 by jnewland (2012-10-05 23:01:21+00:00)
Title: Fix an incorrect crm_option struct in `crm_uuid` 

Used this patch today to successfully modify the UUID of a replacement node.

Previous behavior:

```
# crm_uuid -?
crm_uuid - A tool for manipulating Heartbeat's UUID file
Usage: crm_uuid [-r|-w new_ascii_value]
Options:
-?, --help This text
-$, --version Read the machine's Heartbeat UUID
-r, --read Change the machine's Heartbeat UUID to a new value

Report bugs to pacemaker at oss.clusterlabs.org

# crm_uuid -w 8c4082d4-7ea3-4b3f-8cad-75d2f9585d1e
crm_uuid: invalid option -- 'w'
```

Behavior of a `crm_uuid` binary built with this patch:

```
# ./crm_uuid -w 8c4082d4-7ea3-4b3f-8cad-75d2f9585d1e
$ ./crm_uuid -r
8c4082d4-7ea3-4b3f-8cad-75d2f9585d1e
```